package com.ahyesyesteam.aicarfaultrepair.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author SSQ
 * @since 2022-06-17
 */
@Data
//@EqualsAndHashCode(callSuper = false)
//@Accessors(chain = true)
//@TableName("comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

  @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 点赞数
     */
    private Integer likeCount;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 用户昵称
     */
    private String userNickname;

    /**
     * 所属问题id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long solutionId;


}
